package com.srz.dpm.core.controller.admin;

import com.srz.dpm.core.pojo.entity.ProductParameters;
import com.srz.dpm.core.service.ProductParametersService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

//跨域
//@CrossOrigin
@RestController
@Slf4j
@Api(tags = "参数列表的CRUD_admin")
@RequestMapping("/admin/core/productParametersService")
public class TestAdmin {



    @Resource
    private ProductParametersService productParametersService;
    @Autowired
    private ProductParametersService productParametersService1;



    @ApiOperation(value = "积分等级列表")
    @GetMapping("listAll")
    public List<ProductParameters> listAll(){
        log.info("数据展示成功");
        return productParametersService.list();

    }



}
